package com.github.tommas.admintpl.service.exception;

import java.util.List;

public class FileStorageException extends RuntimeException {
    private final List<String> failedFiles;

    public FileStorageException(List<String> failedFiles) {
        this(failedFiles, null);
    }

    public FileStorageException(List<String> failedFiles, Throwable throwable) {
        super(throwable);
        this.failedFiles = failedFiles;
    }

    public List<String> getFailedFiles() {
        return failedFiles;
    }
}
